package com.neuedu.yyzx.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author 金山
 * 项目：yyzx
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/288:41
 */
@Configuration
public class PasswordEncoderConfiguration {

    /**
     * 在容器中声明   PasswordEncoder 密码处理类
     * @return
     */
    @Bean
    public PasswordEncoder PasswordEncoder(){
        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();

        return  passwordEncoder;
    }


}
